﻿<navigation:Page x:Class="LEEAAttendanceControl.Views.SpecificCompany" 
           xmlns:sdk="http://schemas.microsoft.com/winfx/2006/xaml/presentation/sdk"
           xmlns:toolkit="http://schemas.microsoft.com/winfx/2006/xaml/presentation/toolkit"
           xmlns="http://schemas.microsoft.com/winfx/2006/xaml/presentation" 
           xmlns:x="http://schemas.microsoft.com/winfx/2006/xaml" 
           xmlns:d="http://schemas.microsoft.com/expression/blend/2008"
           xmlns:mc="http://schemas.openxmlformats.org/markup-compatibility/2006"
           mc:Ignorable="d"
           xmlns:navigation="clr-namespace:System.Windows.Controls;assembly=System.Windows.Controls.Navigation"
           d:DesignWidth="640" d:DesignHeight="480"
           Title="SpecificCompany Page">
    <Grid x:Name="LayoutRoot" DataContext="{Binding}">
        <ScrollViewer VerticalScrollBarVisibility="Auto" HorizontalScrollBarVisibility="Auto">
            <Grid>
                <Grid.RowDefinitions>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                    <RowDefinition Height="Auto"/>
                </Grid.RowDefinitions>
                
                <Grid Background="#404041" Grid.Row="0">
                    <TextBlock x:Name="CompanyBlock" Text="Company Details" FontSize="14" Foreground="White" Margin="5,3,3,2"
                               FontWeight="Bold"/>
                </Grid>
                
                <Grid Grid.Row="1" Margin="0,35,0,15" HorizontalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>

                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>

                    <sdk:Label Content="ID:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                                   VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="IDBox" Width="167" Grid.Row="0" Grid.Column="1" Margin="3" IsEnabled="False"
                                 Background="#FFD4E515" Text="{Binding CompanyID}"/>

                    <sdk:Label Content="Name:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                                   VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="NameBox" Width="167" Grid.Row="1" Grid.Column="1" Margin="3" IsEnabled="False"
                             Text="{Binding CompanyName}"/>

                    <sdk:Label Content="Abreviation:" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left"
                                   VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="AbreviationBox" Width="170" Grid.Row="1" Grid.Column="4" IsEnabled="False"
                                 Margin="3" Text="{Binding Abr}"/>
                </Grid>
                
                <Grid Grid.Row="2" Margin="0,35,0,20" HorizontalAlignment="Center">
                    <Grid.RowDefinitions>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                        <RowDefinition Height="Auto"/>
                    </Grid.RowDefinitions>
                    
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    
                    <sdk:Label Content="Address 1:" Grid.Row="0" Grid.Column="0" HorizontalAlignment="Left"
                               VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="Address1Box" Width="170" Grid.Row="0" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Adr1}"/>

                    <sdk:Label Content="Address 2:" Grid.Row="0" Grid.Column="3" HorizontalAlignment="Left"
                               VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="Address2Box" Width="170" Grid.Row="0" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Adr2}"/>

                    <sdk:Label Content="Region:" Grid.Row="1" Grid.Column="0" HorizontalAlignment="Left"
                               VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="RegionBox" Width="170" Grid.Row="1" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding Region}"/>

                    <sdk:Label Content="City:" Grid.Row="1" Grid.Column="3" HorizontalAlignment="Left"
                               VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="CityBox" Width="170" Grid.Row="1" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding City}"/>

                    <sdk:Label Content="State:" Grid.Row="2" Grid.Column="0" HorizontalAlignment="Left"
                               VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="StateBox" Width="170" Grid.Row="2" Grid.Column="1" IsEnabled="False"
                             Margin="3" Text="{Binding State}"/>

                    <sdk:Label Content="Country:" Grid.Row="2" Grid.Column="3" HorizontalAlignment="Left"
                               VerticalAlignment="Center" Margin="3"/>
                    <TextBox x:Name="CountryBox" Width="170" Grid.Row="2" Grid.Column="4" IsEnabled="False"
                             Margin="3" Text="{Binding Country}"/>
                </Grid>
                
                <Grid Grid.Row="3" Margin="0,30,0,15" HorizontalAlignment="Center">
                    <Grid.ColumnDefinitions>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                        <ColumnDefinition Width="70"/>
                        <ColumnDefinition Width="100"/>
                        <ColumnDefinition Width="Auto"/>
                    </Grid.ColumnDefinitions>
                    
                    <sdk:Label Content="Decription:" Grid.Column="0" HorizontalAlignment="Left" VerticalAlignment="Top"
                               Margin="3"/>
                    <TextBox x:Name="DecriptionBox" Width="510" Grid.Column="1" Grid.ColumnSpan="4" IsEnabled="False"
                             Margin="3" Height="85" AcceptsReturn="True" VerticalScrollBarVisibility="Visible"
                             Text="{Binding Description}"/>
                </Grid>
            </Grid>
        </ScrollViewer>
    </Grid>
</navigation:Page>